package com.ztorn.fiscale.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ztorn.common.core.annotation.Excel;
import com.ztorn.common.core.annotation.Excel.ColumnType;
import com.ztorn.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 账户信息对象 fiscale_account
 *
 * @author ztorn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("fiscale_account")
public class FiscaleAccount extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 账户ID */
    @TableId(type = IdType.AUTO)
    @Excel(name = "账户ID", cellType = ColumnType.NUMERIC)
    private Long accountId;

    /** 账户编码 */
    @Excel(name = "账户编码")
    private String accountCode;

    /** 账户名称 */
    @Excel(name = "账户名称")
    private String accountName;

    /** 账户类型（1现金 2银行 3支付宝 4微信 5其他） */
    @Excel(name = "账户类型", readConverterExp = "1=现金,2=银行,3=支付宝,4=微信,5=其他")
    private String accountType;

    /** 初始余额 */
    @Excel(name = "初始余额")
    private BigDecimal initialBalance;

    /** 当前余额 */
    @Excel(name = "当前余额")
    private BigDecimal currentBalance;

    /** 账户状态（0正常 1停用） */
    @Excel(name = "账户状态", readConverterExp = "0=正常,1=停用")
    private String accountStatus;

    /** 开户银行 */
    @Excel(name = "开户银行")
    private String bankName;

    /** 银行账号 */
    @Excel(name = "银行账号")
    private String bankAccount;
}
